package com.wj.gulimall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.wj.common.utils.PageUtils;
import com.wj.common.utils.R;
import com.wj.gulimall.product.entity.AttrEntity;
import com.wj.gulimall.product.entity.ProductAttrValueEntity;
import com.wj.gulimall.product.vo.AttrGroupRelationVo;
import com.wj.gulimall.product.vo.AttrRespVo;
import com.wj.gulimall.product.vo.AttrVo;

import java.util.List;
import java.util.Map;

/**
 * 商品属性
 *
 * @author wenjie
 * @email wenjie@gmail.com
 * @date 2020-10-11 11:58:03
 */
public interface AttrService extends IService<AttrEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void saveAttr(AttrVo attr);

    PageUtils queryBaseAttrPage(Map<String, Object> params, Long catelogId, String attrType);

    AttrRespVo getAttrInfo(Long attrId);

    void updateAttr(AttrVo attrVo);

    List<AttrEntity> attrRelation(Long attrGroupId);

    R deleteRelation(AttrGroupRelationVo[] attrGroupRelationVos);

    PageUtils getNoRelationAttr(Long attrGroupId, Map<String, Object> params);

    List<Long> selectSearchAttrsIds(List<Long> attrIds);
}

